package cn.com.haopy.yue.ai.db.entity.arisk;

import cn.com.haopy.yue.ai.db.entity.BaseEntity;
import cn.com.haopy.yue.ai.db.mybatis.JsonIntegerArrayTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

/**
 * @Description: TODO
 * @Author DuTao
 * @Date 2025/3/26 9:05
 */
@Data
@TableName(value = "arisk_standard_charges", autoResultMap = true)
@ApiModel(value = "收费标准")
public class AIRiskStandardCharges extends BaseEntity {
    @TableField(value = "name", jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "题目名称")
    private String name;

    @ApiModelProperty(value = "副标题")
    @TableField(value = "sub_title", jdbcType = JdbcType.VARCHAR)
    private String subTitle;

    @ApiModelProperty(value = "链接地址")
    @TableField(value = "url", jdbcType = JdbcType.VARCHAR)
    private String url;

    @ApiModelProperty(value = "排序")
    @TableField(value = "sort_index", jdbcType = JdbcType.INTEGER)
    private Integer sortIndex;


    /**
     * 是否计算公式
     */
    @ApiModelProperty(value = "是否计算公式")
    @TableField(value = "`is_calculate`", jdbcType = JdbcType.TINYINT)
    private Boolean isCalculate;

    /**
     * 单收费标准
     */
    @ApiModelProperty(value = "单收费标准")
    @TableField(value = "`is_single`", jdbcType = JdbcType.TINYINT)
    private Boolean isSingle;

    @ApiModelProperty(value = "收费详情")
    @TableField(value = "detail", jdbcType = JdbcType.VARCHAR)
    private String detail;

    /**
     * 选项
     */
    @ApiModelProperty(value = "广告ID")
    @TableField(value = "ad_ids", jdbcType = JdbcType.BLOB, typeHandler = JsonIntegerArrayTypeHandler.class)
    private Integer[] adIds;


}
